
//
//  ViewForCollectFooter.m
//  ProjectA
//
//  Created by dllo on 16/3/8.
//  Copyright © 2016年 刘旺辉. All rights reserved.
//

#import "ViewForCollectFooter.h"
#import "AppMacro.h"
@interface ViewForCollectFooter ()
@property (nonatomic, strong) UIImageView *imageView;

@end

@implementation ViewForCollectFooter
- (void)dealloc {
    [_label release];
    [_imageView release];
    [super dealloc];
}

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageView];
        [_imageView release];
        
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:self.label];
        [_label release];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(self.bounds.size.width / 3, 100, self.bounds.size.width / 3, self.bounds.size.width / 3);
    
    self.imageView.image = [UIImage imageNamed:@"iconfont-kulian"];
    
    
    self.label.frame = CGRectMake(self.bounds.size.width / 3 - 20, 100 + self.bounds.size.width / 3 + 10, self.bounds.size.width / 3 + 40, 30);
    
   // self.label.text = @"这里什么也没有";
    self.label.textAlignment = 1;
    
    [UIView setColorWithView:self.contentView nightColor:RGBA(52, 52, 52, 1) dayColorWithRed:255 green:251 blue:222 alpha:1];
    [UIView setColorWithLabelText:self.label nightColor:L_COLOR_WHITE dayColor:L_COLOR_BLACK];
}

@end
